﻿CREATE PROCEDURE [dbo].[Facturas_Insertar]

@clienteId int, 
@empleadoId int, 
@fechaHora DateTime, 
@iva money

AS
INSERT INTO Facturas
(ClienteId, EmpleadoId, FechaHora, Iva)
VALUES(@clienteId, @empleadoId, @fechaHora, @iva);

SELECT SCOPE_IDENTITY() FROM Facturas;